package com.mundoa3;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;

public class Assets {

	public static TextureAtlas atlas;
	public static AtlasRegion background;
	public static AtlasRegion gameover;
	public static AtlasRegion points;
	public static AtlasRegion restart;
	public static AtlasRegion rock;
	public static AtlasRegion ship;
	public static AtlasRegion start;
	public static AtlasRegion title;
	
	public static void load(){
		
		atlas = new TextureAtlas(Gdx.files.internal("data/game.atlas"));
		
		background = atlas.findRegion("background");
		gameover = atlas.findRegion("gameover");
		points = atlas.findRegion("points");
		restart = atlas.findRegion("restart");
		rock = atlas.findRegion("rock");
		ship = atlas.findRegion("ship");
		start = atlas.findRegion("start");
		title = atlas.findRegion("title");
		
	}
	public static void dispose(){
		atlas.dispose();
	}
	
}
